package com.qcs.sleep.warn;

/**
 * Created by chshqiang on 13-10-17.
 * 系统UI层操作示警适配器
 */
public abstract class LauncherWarnAdapter implements WarnAdapter {
    public static final int SYS = 0; // 系统广播，如黑屏，解屏，打进电话等
    public static final int APP = 1; // 应用发生改变时发送该广播，一般指切换应用

    @Override
    public void onReceive(String action) {
        onReceive(SYS, action);
    }

    public abstract void onReceive(int flag, String action);
}
